package com.hanliy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanliy.entity.PicStorageEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hanyulin
 * @apiNote
 * @date 2021/12/3 11:17
 */
public interface StorageMapper extends BaseMapper<PicStorageEntity> {

    /**
     * 分页查询
     *
     * @param page 分页的参数
     * @param sort 排序字段
     * @author hanyulin
     * @date 2021/12/6 9:52
     * @return List<PicStorageEntity>
     */
    List<PicStorageEntity> page(Page page, @Param(value = "sort")String sort);

}
